<template>
  <div id="app">
    <!-- 路由占位符 -->
    <router-view />

    <audio :src="sUrl" ref="audios"></audio>
  </div>
</template>
<script>
//根组件
export default {
  computed: {
    sUrl() {
      return this.$store.state.sUrl;
    },
  },
  mounted() {
    this.$store.commit("setAudios", this.$refs.audios);
    // RecommendMusic("/personalized/newsong", { limit: 5 }).then((res) => {
    //   console.log(res);
    // });
  },
};
</script>
<style scoped lang="less">
body {
  height: 100%;
}
#app {
  height: 100%;
}
</style>

